package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.product.Category;
import com.atguigu.spzx.model.vo.excel.ExcelCategoryVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author syh
 * @create 2023-08-21 13:04
 */
@Mapper
public interface CategoryMapper {
    List<Category> selectByParentId(Long pid);

    long countChildren(Long id);

    List<Category> selectList();

    void saveBatch(List<Category> list);

    long countByIdOrPidName(ExcelCategoryVo data);
}
